package com.example.sparkmanager.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.util.Date;

@Data
@Entity(name = "modelJob")
@Table(name = "model_job")
public class JobEntity {
    @Id
    private String id;
    @Column
    private String modelId;
    @Column(columnDefinition = "text")
    private String param;
    @Column
    private String status;
    @Column(columnDefinition = "text")
    private String message;

    @Column
    private String jobExecuter;
    @Column
    private String userPin;
    @Column
    private Date createTime;
    @Column
    private String sourceDbId;
    @Column
    private String destinationDbId;
    @Column(name = "`sql`", columnDefinition = "text")
    private String sql;

}

